<!-- 轮播配置 -->
<template>
  <div style="margin-top: 16px">
    <el-form-item label="类型">
      <l-radio
        v-model="myConfig.type"
        :options="dicOption.swiperType"
      ></l-radio>
    </el-form-item>
    <el-form-item label="轮播时间">
      <el-input v-model="myConfig.interval">
        <span slot="suffix">毫秒</span>
      </el-input>
    </el-form-item>
    <!--<el-form-item label="选择器">
      <l-radio v-model="myConfig.indicator"
                  :options="dicOption.swiperIndicator">
      </l-radio>
    </el-form-item>-->
    <el-form-item :label="$t('透明度')" class="form_item_margin">
      <el-slider
        v-model="myConfig.opacity"
        :show-tooltip="false"
        class="slider136 r_margin_right8"
      ></el-slider>
      <el-input
        v-model.number="myConfig.opacity"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
        <span slot="suffix" style="line-height: 32px">%</span>
      </el-input>
    </el-form-item>
  </div>
</template>

<script>
import { dicOption } from "../../mixins/config";
export default {
  data() {
    return {
      dicOption: dicOption,
    };
  },
  props: {
    config: {
      type: Object,
      default: () => ({}),
    },
  },
  computed: {
    myConfig() {
      return this.config;
    },
  },
};
</script>

<style>
</style>